import request from '@/utils/request'

// 查询扩展插件列表
export function listHotPlug(query) {
  return request({
    url: '/system/HotPlug/list',
    method: 'get',
    params: query
  })
}

// 查询扩展插件详细
export function getHotPlug(qualifiedName) {
  return request({
    url: '/system/HotPlug/' + qualifiedName,
    method: 'get'
  })
}

// 新增扩展插件
export function addHotPlug(data) {
  return request({
    url: '/system/HotPlug',
    method: 'post',
    data: data
  })
}

// 修改扩展插件
export function updateHotPlug(data) {
  return request({
    url: '/system/HotPlug',
    method: 'put',
    data: data
  })
}

// 删除扩展插件
export function delHotPlug(qualifiedName) {
  return request({
    url: '/system/HotPlug/' + qualifiedName,
    method: 'delete'
  })
}
